import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

import directive from './directives'


var dayjs = require('dayjs')
window.dayjs = dayjs
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
// 自定义指令
app.use(directive)
app.use(store).use(router).use(ElementPlus).use(Layui).mount('#app');
